module.exports = function(config){
  config.set({

    basePath : './',

    files: [     
       {
          pattern: 'view/**/*.html',
          watched: true,
          included: false,
          served: true
      },
      {pattern: 'bower_components/jquery/dist/jquery.js', include: false },
      {pattern: 'bower_components/jasmine-ajax/lib/mock-ajax.js', include: false },
      {pattern: 'bower_components/jasmine-jquery/lib/jasmine-jquery.js', include: false},
      {pattern: 'app/js/**/*.js', included: false }, 
      {pattern: 'test/unit/**/*.js', included: false }, 
      'test/test-main.js'
    ],
    exclude: ['app/js/webreader.js', 'app/js/.module-cache/**/*.js'],

    autoWatch : true,

    frameworks: ['jasmine', 'requirejs'],

    browsers : ['Chrome'],

    plugins : [
            'karma-chrome-launcher',          
            'karma-jasmine',
            'karma-requirejs',
            'karma-junit-reporter'
            ],

    junitReporter : {
      outputFile: 'test_out/unit.xml',
      suite: 'unit'
    }

  });
};